package cn.wonderland.search.dto;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;


@Data
public class SearchMasterMsgDto {

    @NotBlank(message = "宠物名字不能为空！")
    private String name;
    @NotNull(message = "价格不能为空！")
    private Double price;
    @NotNull(message = "年龄不能为空！")
    private Integer age;
    private Integer gender;
    @NotBlank(message = "宠物毛色不能为空！")
    private String coatColor;
    private String resources;
    @NotNull(message = "宠物类型不能为空！")
    private Long petType;
    @NotBlank(message = "联系地址不能为空！")
    private String address;
    @NotBlank(message = "标题不能为空！")
    private String title;
}
